import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;

public class AppletDraw extends Applet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6803570542927797586L;

	public void paint(Graphics g)
	{
		// Draw Line
		g.drawLine(10, 10, 100, 100);
		
		// Draw Rectangle
		g.drawRect(10, 10, 100, 100);
		
		g.setColor(Color.red);
		g.fillRect(10, 110, 100, 100);
	}
}
